package com.itmk.web.goods.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

import java.util.Date;

@Data
@TableName("goods")
public class Goods {
    @TableId(type= IdType.AUTO)
    private Integer goodsId;
    private String goodsName;
    private Integer userId;
    private Integer categoryId;
    private String categoryName;
    private Integer price;
    private Integer originalPrice;
    private String phoneNum;
    private String wechatId;
    private String image;
    private String introduce;
//    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createdAt;
    private Date updatedAt;
    private Integer status;
    @TableField(exist=false)
    private Integer orderId;
    @TableField(exist=false)
    private Integer buyerId;
    @TableField(exist=false)
    private Date orderCreated;



}
